package com.dc.refactoring._5_简化函数调用._13_ReplaceErrorCodeWithException.checkException;


public class Test {
    public static void main(String[] args){
        double amount = 100;
        Account account = new Account();

        try {
            account.withDraw(amount);
            // 继续处理其他业务
        } catch (BusinessException e) {
            // 处理结束流程
        }

    }
}
